

	var sinalogin = {
	    getData: function() {
	        $('[data-role="login"]').on('click', function() {
	            $.ajax({
	                url: window.domain + window.requestUrl.sinaloginUrl,
	                type: 'get',
	                xhrFields: {
	                    withCredentials: true
	                },
	                crossDomain: true,
	                success: function(res) {
	                    if(typeof(res.not_login) != 'undefined') {
	                        window.setCookie('go_back_link', window.location.href);
	                        window.location.href = './login.html';
	                        return;
	                    }
	                    if(res.status) {
	                        window.location.href = res.data.result;
	                    } else {
	                        iosOverlay({
	                            text: res.msg,
	                            duration: 1000
	                        });
	                    }
	                },
	                error: function(e) {
	                }
	            })
	        })

	    },
	    init: function() {
	        this.getData();
	    }
	}

	sinalogin.init();
